import re

pattern = r'[?&]'  
url = "http://www.minecraft.com" 
result = re.split(pattern, url) 
print(result)
